home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / cos.z / cos
Encoding:
Text File  |  2002-10-03  |  4.1 KB  |  103 lines

  1. COS(3I)                                               Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      CCOOSS, DDCCOOSS, QQCCOOSS, CCCCOOSS, CCDDCCOOSS, CCQQCCOOSS, CCOOSSDD, DDCCOOSSDD, QQCCOOSSDD - Computes
  6.      cosine
  7.  
  8. SSYYNNOOPPSSIISS
  9.      CCOOSS (([XX==]_x))
  10.      DDCCOOSS (([XX==]_x))
  11.      QQCCOOSS (([XX==]_x))
  12.      CCCCOOSS (([XX==]_x))
  13.      CCDDCCOOSS (([XX==]_x))
  14.      CCQQCCOOSS (([XX==]_x))
  15.  
  16.      CCOOSSDD (([XX==]_x))
  17.      DDCCOOSSDD (([XX==]_x))
  18.      QQCCOOSSDD (([XX==]_x))
  19.  
  20. IIMMPPLLEEMMEENNTTAATTIIOONN
  21.      UNICOS, UNICOS/mk and IRIX systems
  22.  
  23.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  24.  
  25. SSTTAANNDDAARRDDSS
  26.      Fortran
  27.  
  28.      Fortran extensions:  QQCCOOSS, CCDDCCOOSS, CCQQCCOOSS, CCOOSSDD, DDCCOOSSDD, QQCCOOSSDD
  29.  
  30. DDEESSCCRRIIPPTTIIOONN
  31.      These functions evaluate _y = cos(_x).
  32.  
  33.      CCOOSS and CCOOSSDD are the generic function names; the others are specifics.
  34.      These are elemental intrinsic functions.  They accept the following
  35.      argument:
  36.  
  37.      _x         Must be of type real.  For CCOOSS, DDCCOOSS, QQCCOOSS, CCCCOOSS, CCDDCCOOSS, and
  38.                CCQQCCOOSS, the argument must be in radians.  It is treated as
  39.                (modulo 2 * pi).  For CCOOSSDD, DDCCOOSSDD, and QQCCOOSSDD, the argument
  40.                must be in degrees and is treated as modulo 360.
  41.  
  42.                See the RETURN VALUES section for more information on input
  43.                data types and return values.
  44.  
  45.      Vector versions of these intrinsics exist on some systems.  Vector
  46.      versions of the CCOOSS, DDCCOOSS, CCCCOOSS, and CCDDCCOOSS intrinsic functions exist
  47.      on UNICOS and UNICOS/mk systems.  On UNICOS/mk systems, the vector
  48.      versions of these intrinsics are used when --OO vveeccttoorr33 or --OO33 are
  49.      specified on the compiler command line.  A vector version of the
  50.      single-precision and double-precision CCOOSS intrinsic exists on IRIX
  51.      systems and is used when --OO33 is specified on the compiler command
  52.      line.
  53.  
  54. NNOOTTEESS
  55.      The CCOOSS, DDCCOOSS, CCCCOOSS intrinsic function names can be passed as
  56.      arguments; the others cannot.
  57.  
  58.      On UNICOS and UNICOS/mk systems, the following return values occur:
  59.  
  60.      * On systems that support the IEEE standard for floating-point
  61.        arithmetic,            25
  62.        CCOOSS((_x)) = NaN if |_x| > 2
  63.  
  64.      * On systems that do not support the IEEE standard for floating-point
  65.        arithmetic,          25
  66.        CCOOSS((_x)) = 0 if |_x| > 2
  67.  
  68.      On IRIX systems, the following return value occurs:
  69.                                       19
  70.           CCOOSS((_x)) = NaN if |_x| > pi * 2
  71.  
  72.      On all systems that support the IEEE standard for floating-point
  73.      arithmetic, the following is true:
  74.  
  75.           CCOOSS((_x)) = NaN if _x = NaN
  76.  
  77. RREETTUURRNN VVAALLUUEESS
  78.      CCOOSS and CCOOSSDD return the single-precision cosine of their
  79.      single-precision arguments.
  80.  
  81.      DDCCOOSS and DDCCOOSSDD return the double-precision cosine of their
  82.      double-precision arguments.
  83.  
  84.      QQCCOOSS and QQCCOOSSDD return the quad-precision cosine of their
  85.      quad-precision arguments.
  86.  
  87.      CCCCOOSS returns the complex cosine of its complex argument.
  88.  
  89.      CCDDCCOOSS returns the complex double-precision cosine of its complex
  90.      double-precision argument.
  91.  
  92.      CCQQCCOOSS returns the complex quad-precision cosine of its complex
  93.      quad-precision argument.
  94.  
  95.      The data type and kind type for single-precision, double-precision,
  96.      and quad-precision values differ depending on your platform.  For
  97.      platform-specific information, see the TERMINOLOGY section of the
  98.      IINNTTRROO__IINNTTRRIINN(3I) man page.
  99.  
  100. SSEEEE AALLSSOO
  101.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  102.      man page.
  103.